"; require "skin/$skin/skin.inc"; ?>
"; } else { echo "
"; } require "board.inc"; require "config.inc"; if ($mode=='board_del') { err_msg("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.. *^^*",!$pass); $connect=my_connect($host,$dbid,$dbpass,$dbname); $admin=@mysql_fetch_array(mysql_query("select adminpass from boardadmin where code='$table'",$connect)); $user=@mysql_fetch_array(mysql_query("select img,file,password from $table where num=$num",$connect)); if ($pass==$admin[adminpass] || $pass==$user[password]) { $check1=@mysql_fetch_array(mysql_query("select count(*) from $table where no=$no and depth>$depth",$connect)); err_msg("°ü·ÃµÈ ±ÛÀÌ ÀÖ¾î »èÁ¦ÇÒ¼ö ¾ø½À´Ï´Ù..*^^*",$check1[0]>0); mysql_query("delete from $table where num=$num",$connect); mysql_query("delete from ${table}_naksu where parent_num=$num",$connect); table_lock("boardadmin"); mysql_query("update boardadmin set total=total-1 where code='$table'",$connect) or die(mysql_error());; table_unlock(); if ($user[img] && file_exists("$table/images/$user[img]")) unlink("$table/images/$user[img]"); if ($user[file] && file_exists("$table/files/$user[file]")) unlink("$table/files/$user[file]"); echo "
°Ô½Ã¹°ÀÌ »èÁ¦µÇ¾ú½À´Ï´Ù..

â´Ý±â "; } else { echo "
ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù..

â´Ý±â "; } exit; } if (!$mode) { echo " °Ô½Ã¹° »èÁ¦Çϱâ

ºñ¹Ð¹øÈ£ :       â´Ý±â
"; } ?>